# num = input("请输入数字：")
# i1 = int(num)
# if i1 > 10:
#     print("是")
#
# num2 = input("请输入数字：")
# i = int(num2)
# if i % 2 == 0:
#     print('偶数')
# else:
#     print('奇数')

'''
score=int(input("请输入你的分数："))
if score>0 and score<=100:
    if score>=90:
        print("A")
    elif score>=80:
        print("B")
    elif score>=70:
        print("C")
    elif score>=60:
        print("D")
    else:
        print("E")
else:
    print('请输入正确的成绩！')
'''

# flag = True
# while (flag):
#     score = int(input("请输入你的分数："))
#     if score > 0 and score <= 100:
#         if score >= 90:
#             print("A")
#         elif score >= 80:
#             print("B")
#         elif score >= 70:
#             print("C")
#         elif score >= 60:
#             print("D")
#         else:
#             print("E")
#         flag = False
#     else:
#         print('请输入正确的成绩！')

# tem = int(input("请输入温度:"))
# wea = int(input('晴天请输入1，雨天请输入2:'))
# if wea == 1:
#     if tem >= 30:
#         print('室内游泳')
#     elif tem <= 30:
#         print('室外篮球')
# elif wea == 2:
#     if tem >= 25:
#         print('室内游泳')
#     elif tem <= 25:
#         print('室外篮球')


# 3位数，它的每个数位上的数字的3次幂之和等于它本身(153)

num1 = int(input("请输入一个三位数："))
baiweinum = num1 // 100

num2 = num1 % 100
shiweinum = num2 // 10

geweinum = num1 % 10

if baiweinum ** 3 + shiweinum ** 3 + geweinum ** 3 == num1:
    print("是水仙花数")
else:
    print('不是水仙花数')


# 如果年份能被4整除，那么它有可能是闰年。
# 但如果该年份能被100整除，那么它不是闰年，除非它同时能被400整除。
# 例如：2020年是闰年，因为它可以被4整除。

# nianfen = int(input("请输入年份："))
# if nianfen%4==0 :
#     if nianfen%100==0 and nianfen%400==0:
#         print("是闰年")
#     elif nianfen%100!=0 :
#         print("是闰年")
#     else:
#         print('不是闰年')
# else:
#     print('不是闰年')